package com.tianji.learning.controller;


import com.tianji.learning.service.IPointsBoardSeasonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hc
 * @since 2024-08-30
 */
@Api(tags = "积分天梯榜赛季相关接口")
@RestController
@RequestMapping("/boards/seasons")
public class PointsBoardSeasonController {

    @Autowired
    private IPointsBoardSeasonService boardSeasonService;
    /**
     *  查询赛季列表
     * @return 赛季列表
     */
    @GetMapping("list")
    @ApiOperation("查询赛季列表")
    public List<com.itheima.learning.domain.vo.PointsBoardSeasonVO> getBoardSeason(){
        return boardSeasonService.getBoardSeason();
    }
}
